Optimal. Leaf size=87 \[ \frac {i c^4 (1-i \tan (e+f x))^4}{10 f (a+i a \tan (e+f x))^5}+\frac {i c^4 (a-i a \tan (e+f x))^4}{80 a^5 f (a+i a \tan (e+f x))^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {3603, 3568, 47,
37} \begin {gather*} \frac {i c^4 (a-i a \tan (e+f x))^4}{80 a^5 f (a+i a \tan (e+f x))^4}+\frac {i c^4 (1-i \tan (e+f x))^4}{10 f (a+i a \tan (e+f x))^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 47
Rule 3568
Rule 3603
Rubi steps
\begin {align*} \int \frac {(c-i c \tan (e+f x))^4}{(a+i a \tan (e+f x))^5} \, dx &=\left (a^4 c^4\right ) \int \frac {\sec ^8(e+f x)}{(a+i a \tan (e+f x))^9} \, dx\\ &=-\frac {\left (i c^4\right ) \text {Subst}\left (\int \frac {(a-x)^3}{(a+x)^6} \, dx,x,i a \tan (e+f x)\right )}{a^3 f}\\ &=\frac {i c^4 (1-i \tan (e+f x))^4}{10 f (a+i a \tan (e+f x))^5}-\frac {\left (i c^4\right ) \text {Subst}\left (\int \frac {(a-x)^3}{(a+x)^5} \, dx,x,i a \tan (e+f x)\right )}{10 a^4 f}\\ &=\frac {i c^4 (1-i \tan (e+f x))^4}{10 f (a+i a \tan (e+f x))^5}+\frac {i c^4 (a-i a \tan (e+f x))^4}{80 a^5 f (a+i a \tan (e+f x))^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.01, size = 53, normalized size = 0.61 \begin {gather*} \frac {c^4 (9 \cos (e+f x)+i \sin (e+f x)) (i \cos (9 (e+f x))+\sin (9 (e+f x)))}{80 a^5 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.28, size = 66, normalized size = 0.76
method | result | size |
risch | \(\frac {i c^{4} {\mathrm e}^{-8 i \left (f x +e \right )}}{16 a^{5} f}+\frac {i c^{4} {\mathrm e}^{-10 i \left (f x +e \right )}}{20 a^{5} f}\) | \(44\) |
derivativedivides | \(\frac {c^{4} \left (-\frac {3 i}{\left (\tan \left (f x +e \right )-i\right )^{4}}-\frac {2}{\left (\tan \left (f x +e \right )-i\right )^{3}}+\frac {i}{2 \left (\tan \left (f x +e \right )-i\right )^{2}}+\frac {8}{5 \left (\tan \left (f x +e \right )-i\right )^{5}}\right )}{f \,a^{5}}\) | \(66\) |
default | \(\frac {c^{4} \left (-\frac {3 i}{\left (\tan \left (f x +e \right )-i\right )^{4}}-\frac {2}{\left (\tan \left (f x +e \right )-i\right )^{3}}+\frac {i}{2 \left (\tan \left (f x +e \right )-i\right )^{2}}+\frac {8}{5 \left (\tan \left (f x +e \right )-i\right )^{5}}\right )}{f \,a^{5}}\) | \(66\) |
norman | \(\frac {\frac {c^{4} \tan \left (f x +e \right )}{a f}-\frac {4 i c^{4} \left (\tan ^{2}\left (f x +e \right )\right )}{a f}+\frac {13 i c^{4} \left (\tan ^{4}\left (f x +e \right )\right )}{a f}+\frac {i c^{4}}{10 a f}-\frac {9 c^{4} \left (\tan ^{3}\left (f x +e \right )\right )}{a f}+\frac {63 c^{4} \left (\tan ^{5}\left (f x +e \right )\right )}{5 a f}-\frac {3 c^{4} \left (\tan ^{7}\left (f x +e \right )\right )}{a f}+\frac {i c^{4} \left (\tan ^{8}\left (f x +e \right )\right )}{2 a f}-\frac {8 i c^{4} \left (\tan ^{6}\left (f x +e \right )\right )}{a f}}{\left (1+\tan ^{2}\left (f x +e \right )\right )^{5} a^{4}}\) | \(183\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.14, size = 39, normalized size = 0.45 \begin {gather*} \frac {{\left (5 i \, c^{4} e^{\left (2 i \, f x + 2 i \, e\right )} + 4 i \, c^{4}\right )} e^{\left (-10 i \, f x - 10 i \, e\right )}}{80 \, a^{5} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.36, size = 107, normalized size = 1.23 \begin {gather*} \begin {cases} \frac {\left (20 i a^{5} c^{4} f e^{10 i e} e^{- 8 i f x} + 16 i a^{5} c^{4} f e^{8 i e} e^{- 10 i f x}\right ) e^{- 18 i e}}{320 a^{10} f^{2}} & \text {for}\: a^{10} f^{2} e^{18 i e} \neq 0 \\\frac {x \left (c^{4} e^{2 i e} + c^{4}\right ) e^{- 10 i e}}{2 a^{5}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 174 vs. \(2 (75) = 150\).
time = 1.20, size = 174, normalized size = 2.00 \begin {gather*} -\frac {2 \, {\left (5 \, c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{9} - 5 i \, c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{8} - 50 \, c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{7} + 35 i \, c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} + 98 \, c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 35 i \, c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 50 \, c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 5 i \, c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 5 \, c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{5 \, a^{5} f {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - i\right )}^{10}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.87, size = 98, normalized size = 1.13 \begin {gather*} \frac {c^4\,\left (-5\,{\mathrm {tan}\left (e+f\,x\right )}^3-{\mathrm {tan}\left (e+f\,x\right )}^2\,5{}\mathrm {i}+5\,\mathrm {tan}\left (e+f\,x\right )+1{}\mathrm {i}\right )}{10\,a^5\,f\,\left ({\mathrm {tan}\left (e+f\,x\right )}^5\,1{}\mathrm {i}+5\,{\mathrm {tan}\left (e+f\,x\right )}^4-{\mathrm {tan}\left (e+f\,x\right )}^3\,10{}\mathrm {i}-10\,{\mathrm {tan}\left (e+f\,x\right )}^2+\mathrm {tan}\left (e+f\,x\right )\,5{}\mathrm {i}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________